package net.schastny.contactmanager.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import net.schastny.contactmanager.dao.ShakeDAO;
import net.schastny.contactmanager.domain.Shake;

public class ShakeServiceImpl implements ShakeService {

	@Autowired
	private ShakeDAO shakeDAO;

	@Transactional
	public void addShake(Shake shake) {

		shakeDAO.addShake(shake);

	}

	@Transactional
	public List<Shake> listShake() {

		return shakeDAO.listShake();
	}

	@Transactional
	public void removeShake(Integer id) {

		shakeDAO.removeShake(id);
	}

}
